package Controlador;

import Vista.JFrameMenuPrin;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class ControladorMenuPrin implements ActionListener
{
  private JFrameMenuPrin formMenuPrin;    

    public ControladorMenuPrin()
    {
       formMenuPrin=new JFrameMenuPrin();
       formMenuPrin.agregarListener(this);
       formMenuPrin.setVisible(true);
    }

    @Override
    public void actionPerformed(ActionEvent e) 
    {
      if (e.getSource().equals(formMenuPrin.getItemVigilantes()))  
      {
         new ControladorVigilantes();  
      }  

      /*if (e.getSource().equals(formMenuPrin.getItemClientes()))  
      {
          new ControladorClientes();
         
      } */ 
      
        if (e.getSource().equals(formMenuPrin.getItemContrato()))  
      {
          new ControladorContrato();
         
      }  
    }
  
  
}
